import sys

num = 2
num2 = 5
for i in range(1, 101):
    if i < 4:
        print i
    elif i > 3 :
        if i == 5 :
            print i
        if i % num == 0 :
            continue
        elif i % num2 == 0 :
            continue
        else :
            print i